package com.ruoyi.manage.controller;

import com.ruoyi.manage.util.AddressLocationUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 马景昌
 * @create 2025/03/20
 * @description
 */
@RestController
@RequestMapping("/address")
public class AddressController {
    @Autowired
    private AddressLocationUtil addressLocationUtil;

    @GetMapping("/loaction")
    public String loaction(){
        return addressLocationUtil.getLonAndLatByAddress();
    }

}
